//
//  ILFavoriteMusicTableViewCell.m
//  ILife
//
//  Created by lanou on 15/11/4.
//  Copyright © 2015年 ILife. All rights reserved.
//

#import "ILFavoriteMusicTableViewCell.h"
#import <UIImageView+WebCache.h>
@implementation ILFavoriteMusicTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        _singerImageView = [[UIImageView alloc]init];
//      720 × 405
        _singerImageView.frame = CGRectMake(10, 10, 180, 100);
        [self.contentView addSubview:_singerImageView];
        
        _titleLabel  =[[UILabel alloc]initWithFrame:CGRectMake(200, 10, SCREEN_WIDTH - 210, 100)];
        _titleLabel.font = [UIFont systemFontOfSize:15];
        _titleLabel.numberOfLines = 0;
        [self.contentView addSubview:_titleLabel];
        
    }
    return self;
}

-(void)setMusicListModel:(ILFavoriteMusicListModel *)musicListModel
{
    _musicListModel = musicListModel;
    [_singerImageView sd_setImageWithURL:[NSURL URLWithString:musicListModel.image]];
    _titleLabel.text = musicListModel.title;
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
